<link rel="stylesheet" type="text/css" href="<?php echo(JS_LIBS);?>jquery-notifyjs/styles/metro/notify-metro.css">

<div class="page-heading">
        <h1><i class="fa fa-file"></i> Cercador Notícies</h1>
		<div class="clearfix"></div>
		<div class="widget">
			<div class="widget-content padding ">						
				<div class="row">
					 <div class="col-sm-6">
						<div class="input-group">
						  <input type="text" class="form-control" id="input_busqueda_noticias">
							  <span class="input-group-btn">
							<button type="button" class="btn btn-blue-2" onClick="javascript:busquedaNoticiasTitulo();">Cercar</button>
							<button type="button" class="btn btn-danger" onClick="javascript:eliminarListado();"><i class="fa fa-trash"></i></button>
						  </span>
						</div><!-- /input-group -->
					</div><!-- /.col-lg-6 -->
						<div class="col-sm-2">
								<select class="form-control" id="tipus_noticia" name="tipus_noticia" >
									<option value="1">General</option>
									<option value="2">Futbol Sala</option>
									<option value="3">Futbol Platja</option>
								</select>
								<p class="help-block">Tipus de notícia</p>
						</div>
						<div class="col-sm-2">
								<select class="form-control" id="idioma" name="idioma" onchange="listarNoticias(this.value,0,total_busquedas.value);">
									<option value="1">Català</option>
									<option value="2">Castellà</option>
									<option value="3">Anglès</option>
								</select>
								<p class="help-block">Idioma</p>
						</div>
						<div class="col-sm-2">
								<select class="form-control" id="total_busquedas" name="total_busquedas" onchange="listarNoticias(idioma.value,0,this.value);";>
									<option value="20">20</option>
									<option value="50">50</option>
									<option value="100">100</option>
								</select>
								<p class="help-block">Número de resultats</p>
						</div>
			</div>
			</div>
		</div>
	
		<div class="row" id="lista_noticias">
				
		</div>
	
	
<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="padding-top:10em">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
				Confirmar
            </div>
            <div class="modal-body">
   				Vols realment eliminar la notícia?
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Tancar</button>
                <a id="submit_eliminar_noticia" class="btn btn-danger danger">Eliminar</a>
            </div>
        </div>
    </div>
</div>	


<script src="<?php echo(JS_LIBS);?>jquery-notifyjs/notify.min.js"></script>
<script src="<?php echo(JS_LIBS);?>jquery-notifyjs/styles/metro/notify-metro.js"></script>
<script src="<?php echo(JS);?>noticies/buscador_noticias.js"></script>